Skip to content

Conversation

@ElasticBottle
Copy link
Contributor

@ElasticBottle ElasticBottle commented Oct 28, 2024

Problem solved

Updates the dashboard so that list of in app wallet will pull from thirdweb RDS.
NOTE: NEED TO UPDATE ENV VAR AFTER DEPLOYEMENT


PR-Codex overview

This PR focuses on enhancing the thirdweb ecosystem by exposing the WalletUser type, updating API endpoints, and modifying wallet retrieval logic. It improves user identification in embedded wallets and refines data handling within the dashboard.

Detailed summary

  • Exposed WalletUser type in packages/thirdweb/src/exports/wallets.ts.
  • Updated THIRDWEB_EWS_API_HOST URL in apps/dashboard/src/constants/urls.ts.
  • Modified embeddedWallets function to include page parameter.
  • Changed useEmbeddedWallets to fetch wallet data with pagination.
  • Updated wallet user identification logic in apps/dashboard/src/components/embedded-wallets/Users/index.tsx.
  • Removed deprecated withinDays function from apps/dashboard/src/utils/date-utils.ts.
  • Adjusted CSV download functionality to reflect new wallet data structure.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link

changeset-bot bot commented Oct 28, 2024

🦋 Changeset detected

Latest commit: 68ce724

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 2:39am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 2:39am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 2:39am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 2:39am

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 28, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added Dashboard Involves changes to the Dashboard. packages labels Oct 28, 2024
@ElasticBottle ElasticBottle changed the title Update in app wallet user api [dashboard]: Update in app wallet user api Oct 28, 2024
@ElasticBottle ElasticBottle changed the title [dashboard]: Update in app wallet user api [Dashboard]: Update in app wallet user api Oct 28, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Oct 28, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43 KB (0%) 861 ms (0%) 3.2 s (+32.71% 🔺) 4 s
thirdweb (cjs) 102.91 KB (0%) 2.1 s (0%) 7.4 s (+27.69% 🔺) 9.4 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 188 ms (-24.82% 🔽) 285 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 79 ms (-34.88% 🔽) 89 ms
thirdweb/react (minimal + tree-shaking) 17.38 KB (0%) 348 ms (0%) 954 ms (+74.13% 🔺) 1.4 s

@codecov
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.36%. Comparing base (5dc1899) to head (f662121).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5187      +/-   ##
==========================================
- Coverage   45.36%   45.36%   -0.01%     
==========================================
  Files        1068     1068              
  Lines       55230    55233       +3     
  Branches     3971     3972       +1     
==========================================
- Hits        25055    25054       -1     
- Misses      29483    29487       +4     
  Partials      692      692              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 5dc1899
packages 40.37% <ø> (-0.01%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

see 2 files with indirect coverage changes

columnHelper.accessor("last_accessed_at", {
header: "Last login",
columnHelper.accessor("linkedAccounts", {
header: "Login Methods",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

siiick

Copy link
Contributor Author

ElasticBottle commented Oct 29, 2024

Merge activity

  • Oct 28, 10:25 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Oct 28, 10:36 PM EDT: A user added this pull request to the Graphite merge queue.
  • Oct 28, 10:39 PM EDT: A user merged this pull request with the Graphite merge queue.

## Problem solved

Updates the dashboard so that list of in app wallet will pull from thirdweb RDS.
NOTE: NEED TO UPDATE ENV VAR AFTER DEPLOYEMENT

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `thirdweb` wallet integration by exposing the `WalletUser` type, updating API endpoints, and improving the handling of embedded wallets in the dashboard. It also refines wallet user data display and pagination in the user interface.

### Detailed summary
- Exposed `WalletUser` type in `packages/thirdweb/src/exports/wallets.ts`.
- Updated API host URL in `apps/dashboard/src/constants/urls.ts`.
- Modified `embeddedWallets` function to include `page` parameter.
- Refactored `useEmbeddedWallets` to support pagination and improved error handling.
- Changed data structure in `useEmbeddedWallets` to return `users` and `totalPages`.
- Updated wallet user display logic in `apps/dashboard/src/components/embedded-wallets/Users/index.tsx`.
- Removed deprecated `withinDays` function from `apps/dashboard/src/utils/date-utils.ts`.
- Enhanced CSV download functionality to include all users and relevant details.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard. merge-queue Adds the pull request to Graphite's merge queue. packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants